Optimal. Leaf size=94 \[ -\frac {\sin (c+d x)}{a d}-\frac {\csc ^4(c+d x)}{4 a d}+\frac {\csc ^3(c+d x)}{3 a d}+\frac {\csc ^2(c+d x)}{a d}-\frac {2 \csc (c+d x)}{a d}+\frac {\log (\sin (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2836, 12, 88} \[ -\frac {\sin (c+d x)}{a d}-\frac {\csc ^4(c+d x)}{4 a d}+\frac {\csc ^3(c+d x)}{3 a d}+\frac {\csc ^2(c+d x)}{a d}-\frac {2 \csc (c+d x)}{a d}+\frac {\log (\sin (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 88
Rule 2836
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x) \cot ^5(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a^5 (a-x)^3 (a+x)^2}{x^5} \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(a-x)^3 (a+x)^2}{x^5} \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (-1+\frac {a^5}{x^5}-\frac {a^4}{x^4}-\frac {2 a^3}{x^3}+\frac {2 a^2}{x^2}+\frac {a}{x}\right ) \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=-\frac {2 \csc (c+d x)}{a d}+\frac {\csc ^2(c+d x)}{a d}+\frac {\csc ^3(c+d x)}{3 a d}-\frac {\csc ^4(c+d x)}{4 a d}+\frac {\log (\sin (c+d x))}{a d}-\frac {\sin (c+d x)}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.30, size = 66, normalized size = 0.70 \[ -\frac {12 \sin (c+d x)+3 \csc ^4(c+d x)-4 \csc ^3(c+d x)-12 \csc ^2(c+d x)+24 \csc (c+d x)-12 \log (\sin (c+d x))}{12 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 104, normalized size = 1.11 \[ -\frac {12 \, \cos \left (d x + c\right )^{2} - 12 \, {\left (\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) + 4 \, {\left (3 \, \cos \left (d x + c\right )^{4} - 12 \, \cos \left (d x + c\right )^{2} + 8\right )} \sin \left (d x + c\right ) - 9}{12 \, {\left (a d \cos \left (d x + c\right )^{4} - 2 \, a d \cos \left (d x + c\right )^{2} + a d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 83, normalized size = 0.88 \[ \frac {\frac {12 \, \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a} - \frac {12 \, \sin \left (d x + c\right )}{a} - \frac {25 \, \sin \left (d x + c\right )^{4} + 24 \, \sin \left (d x + c\right )^{3} - 12 \, \sin \left (d x + c\right )^{2} - 4 \, \sin \left (d x + c\right ) + 3}{a \sin \left (d x + c\right )^{4}}}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.46, size = 93, normalized size = 0.99 \[ -\frac {\sin \left (d x +c \right )}{a d}-\frac {2}{d a \sin \left (d x +c \right )}+\frac {\ln \left (\sin \left (d x +c \right )\right )}{a d}+\frac {1}{a d \sin \left (d x +c \right )^{2}}-\frac {1}{4 a d \sin \left (d x +c \right )^{4}}+\frac {1}{3 a d \sin \left (d x +c \right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 72, normalized size = 0.77 \[ \frac {\frac {12 \, \log \left (\sin \left (d x + c\right )\right )}{a} - \frac {12 \, \sin \left (d x + c\right )}{a} - \frac {24 \, \sin \left (d x + c\right )^{3} - 12 \, \sin \left (d x + c\right )^{2} - 4 \, \sin \left (d x + c\right ) + 3}{a \sin \left (d x + c\right )^{4}}}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 9.34, size = 214, normalized size = 2.28 \[ \frac {3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{16\,a\,d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24\,a\,d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,a\,d}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a\,d}+\frac {-46\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-\frac {40\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3}+\frac {11\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{4}+\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{3}-\frac {1}{4}}{d\,\left (16\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+16\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\right )}-\frac {7\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,a\,d}-\frac {\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{a\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________